
            <div class="content container">

                <div class="task-select">
                    <select class="form-control" id="zhuanye">
                        <option value="">选择专业</option>
                        <volist name="list" id="vo" key="k">
                        <option value="{$vo.id}">{$vo.title}</option>
                        </volist>
                    </select>
                    <select class="form-control" id="schoolid">
                       
                    </select>
                </div>
                <!-- container -->
                <table class="table table-bordered collect-table">
                    <thead>
                        <tr>
                            <th>名目</th>
                            <th>截止时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody id="uuu">
                      
                    </tbody>
                </table>
                <!-- container End -->

            </div>
<script src="__PUBLIC__/dist/js/jquery.js"></script>
<script>
    $(function () {
         $('#zhuanye').on('change',function(){
         var aa = $(this).val() ;
           $.ajax({
           type: "POST",
           url: "index.php?g=User&m=Writing&a=getschool",
           data: "aa="+aa,
           dataType: "json",
           success: function(resp)
           {
            if(resp != null){
                var strHTML = '<option value="">选择学校</option>';
                $.each(resp, function(k, item) {
                    $.each(item.sclist, function(i, hhh) {
                    strHTML += '<option data-zyid="'+item.zyid+'" value="'+hhh.id+'">'+hhh.realname+'</option>' ;
                });
                });
                $("#schoolid").html(strHTML) ;
            }
            }        
        });
         })    
         
        $('#schoolid').on('change',function(){
         var ee = $(this).val() ;
         var zyid = $(this).find("option:selected").data("zyid");
           $.ajax({
           type: "POST",
           url: "index.php?g=User&m=Writing&a=getexam",
           data: "ee="+ee,
           dataType: "json",
           success: function(resp)
           {
            if(resp != null){
                var strHTMLqq = '';
                $.each(resp, function(k, item) {
                    
                    strHTMLqq += '<tr><td>'+item.title+'</td><td>'+item.createtime+'</td><td><a class="text-primary" href="index.php?g=User&m=Writing&a=info&zyid='+zyid+'&id='+item.id+'">查看详情</a></td></tr>' ;

                });
                $("#uuu").html(strHTMLqq) ;
            }
            }        
        });
         })
    })
</script>